import java.util.Scanner;

public class 运费 {
    public static void main(String[] args) {
        Scanner yf = new Scanner(System.in);
        System.out.println("请输入网购金额：");
        System.out.println("请输入公里数：");
        Double price = yf.nextDouble();
        Double distance = yf.nextDouble();
        if (distance >= 0 && distance <= 10) {
            price += 10;
            System.out.println("需要缴纳的金额为" + price);
        } else if (distance >= 11 && distance <= 50) {
            price += 50;
            System.out.println("需要缴纳的金额为" + price);
        } else if (distance >= 51 && distance <= 100) {
            price += 100;
            System.out.println("需要缴纳的金额为" + price);
        } else {
            price += 200;
            System.out.println("需要缴纳的金额为" + price);

        }
    }
}
